<h1>Conference Fees</h1>
<?php
	echo "<ul>";
		$adon = FALSE;
		$total = 0;
	  foreach ($confregs as $reg){
		$don = $reg->getTotalPaid();
		if($don >0){
			echo "<li> $";
                echo $don;
				$total = $total + $don;
                $person = $reg->getRegistrantId();
                $person2 = RegistrantPeer::retrieveByPK($person);
                echo "  -  ";
                echo link_to($person2->getName(), 'reports/registration?id='.$reg->getId());
				$adon = TRUE;
			echo "</li>";
		
		}

	  }
	  	if(!$adon){
		echo "<p>Sorry, no payments have been made for this Conference yet.</p>";
	} else {
		echo "<br/><br/><li>Total: $";
		echo $total;
		echo "</li>";
	}
	  echo "</ul>";
?>